import { request } from 'umi';
import {requestURLPreFix,conventionResponseDeal} from '../_requestAPI'

export async function getNotices(options?: { [key: string]: any }) {
    console.log(`${requestURLPreFix()}/api/notices`)
    return request<Response>(`${requestURLPreFix()}/api/notices`, {
        method: 'POST',
        ...(options || {}),
    }).then((value: Response) => {
        console.log(value)
        return conventionResponseDeal(value)
    });
}
